package com.jiangyg.mall.seckill.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 类描述：秒杀
 *
 * @author jiangyg
 * @version 4.0
 * @date 2022-12-27
 */
@Data
@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
public class SeckillDTO implements Serializable {

    private static final long serialVersionUID = -957630818203124542L;

    /**
     * 商品ID
     */
    @NotNull
    private Long skuId;

    /**
     * 购买数量
     */
    @NotNull
    private Integer count;

    /**
     * 随机码
     */
    @NotNull
    private String code;

    /**
     * 秒杀场次ID
     */
    @NotNull
    private Long sessionId;

    /**
     * 秒杀活动ID
     */
    @NotNull
    private Long promptionId;

}
